﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt.ProjectBuyRecord
{
    /// <summary>
    /// 项目招标文件购买记录（包含已付款和未付款）
    /// </summary>
    public class ProjectDocumentBuyRecord
    {
        /// <summary>
        /// 文件购买记录ID
        /// </summary>
        public virtual string buy_id { get; set; }

        /// <summary>
        /// 购买记录的文件
        /// </summary>
        public virtual ProjectDocument document { get; set; }

        /// <summary>
        /// 购买记录的投标人企业
        /// </summary>
        public virtual Enterprise enterprise { get; set; }

        /// <summary>
        /// 购买记录的投标人企业的联系人
        /// </summary>
        public virtual EnterpriseUser enterprise_linker { get; set; }

        /// <summary>
        /// 购买记录的投标人企业的联系人姓名
        /// </summary>
        public virtual string linker_name { get; set; }

        /// <summary>
        /// 购买记录的投标人企业的联系人姓名
        /// </summary>
        public virtual string buy_ent_user_name { get; set; }

        /// <summary>
        /// 购买记录的购买金额
        /// </summary>
        public virtual decimal buy_value { get; set; }

        /// <summary>
        /// 购买记录的购买时间
        /// </summary>
        public virtual DateTime order_date { get; set; }

        /// <summary>
        /// 操作用户
        /// </summary>
        public virtual t_sys_user order_user { get; set; }

        /// <summary>
        /// 购买记录的付款时间
        /// </summary>
        public virtual DateTime buy_date { get; set; }

        /// <summary>
        /// 购买记录的付款标志，标示是否已付款
        /// </summary>
        public virtual int buy_flag { get; set; }

        /// <summary>
        /// 购买记录的收款用户
        /// </summary>
        public virtual t_sys_user buy_user { get; set; }

        /// <summary>
        /// 购买记录的条码标识
        /// </summary>
        public virtual string buy_code { get; set; }

        /// <summary>
        /// 购买记录的发票号码
        /// </summary>
        public virtual string buy_fphm { get; set; }

        /// <summary>
        /// 购买记录的制造商及品牌
        /// </summary>
        public virtual string buy_pp { get; set; }

        /// <summary>
        /// 是否有效标志
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
    }
}
